package com.moliku.insurance.model.dto.insure;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import java.io.Serializable;
import java.util.List;

/**
 * 投保参数
 *
 * @author Mr.Liu
 * @since 2021/3/5
 */
@Data
public class InsureDTO implements Serializable {

    private static final long serialVersionUID = -3440398013266968881L;

    @ApiModelProperty(value = "本地订单表中的ID值，仅用于投保时MQ标识的web处添加到表中的ID值", hidden = true)
    private Long localOrderId;

    @Valid
    @ApiModelProperty(value = "保单基本信息")
    private OrderDTO order;

    @Valid
    @ApiModelProperty(value = "投保人信息")
    private PolicyHolderDTO policyHolder;

    @Valid
    @ApiModelProperty(value = "被保险人信息")
    private List<InsuredInfoDTO> insureds;

    @ApiModelProperty(value = "扩展字段")
    private String orderExtInfo;

}
